<?php
$graphURL = 'https://graph.facebook.com/10151268696563678?accesstoken=BAAFdqWJjZCLUBAGDFFKIRgWeQvu7fuZANvdBGuZBjSmBio4LU667ctWlBhwIu2MDZAOPZCZBqQhqZBfCkk0gMNKrs1WQ16nUu9Bao59MyhOK8N4GwPPd7CcDINCHSVHB3sZD';

//curl_close ($graphURL);

$graph = json_decode(get_curl($graphURL));

if ($graph) {
echo $graph->source;
}
	
	
	//Added curl for faster response
function get_curl($url){
    if(function_exists('curl_init')){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,$url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); 
        $output = curl_exec($ch);
        echo curl_error($ch);
        curl_close($ch);
        return $output;
    }else{
        return file_get_contents($url);
    }

}
?>